﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MoodleDesktop
{
    public partial class Item : UserControl
    {
        private bool state = false;
        public Item()
        {
            InitializeComponent();
        }

        private void pictureBox1_Click(object sender, EventArgs e)
        {
            state = !state;
            pictureBox1.Image = state? Image.FromHbitmap(Resource1.uncheck.GetHbitmap()) :
                                                         Image.FromHbitmap(Resource1.check.GetHbitmap());
        }

        private void pictureBox1_MouseHover(object sender, EventArgs e)
        {
            Cursor = Cursors.Hand;
        }
    }
}
